package cn.abellflower.flower.home.server.ribbon.controller;

import cn.abellflower.flower.home.server.ribbon.service.HomeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;


/**
 * 首页
 *
 * @author gbzdyf@126.com
 * @create 2018-07-19 13:48
 **/
@RestController
public class HomeController {

    @Autowired
    HomeService homeService;

    @GetMapping(value = "/index")
    public String hi(@RequestParam String name) {
        return homeService.index(name);
    }
}
